package cn.edu.suda.catalina.dataupdate.controller;

import cn.edu.suda.catalina.dataupdate.entity.SystemUser;
import cn.edu.suda.catalina.dataupdate.service.SystemUserService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

/**
 * @author admin
 */
@RestController
public class SystemUserController {
    @Autowired
    private SystemUserService service;

    @RequestMapping("/addUser")
    public SystemUser add(SystemUser user) {
        return service.save(user);
    }
}
